package com.gsxi.tyagbackend.utils.enums;

import com.gsxi.tyagbackend.utils.exception.BaseExceptionInterface;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;

/**
 * @Author: gsxi
 * @CreateTime: 2024-07-17
 * @Description: 异常枚举
 * @Version: 1.0
 */

@Getter
@AllArgsConstructor
public enum  ResponseCodeEnum implements BaseExceptionInterface {
    //未知错误
    UNKNOWN_ERROR(10001, "未知错误"),
    //参数错误
    PARAM_ERROR(10002, "参数错误"),
    //用户名或密码错误
    USER_PASSWORD_ERROR(10003, "用户名或密码错误"),
    //用户名已存在
    USER_EXIST(10004, "用户名已存在"),
    //用户名不存在
    USER_NOT_EXIST(10005, "用户名不存在"),




    ;
    private Integer errorCode;
    private String errorMessage;
}
